package list;

/**
 * @Author Gavin
 * @date 2021.12.08 22:28
 */
public class ListNode {
    int val;

    public int getVal() {
        return val;
    }

    public void setVal(int val) {
        this.val = val;
    }

    public ListNode getNext() {
        return next;
    }

    public void setNext(ListNode next) {
        this.next = next;
    }

    ListNode next;
    ListNode(int val){
        this.val=val;
    }
    public ListNode(){
    }
}
